<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/12/27
  Time: 9:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户添加</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.3/jquery.js"></script>
    <link rel="stylesheet" href="/static/bootstrap-4.6.2-dist/css/bootstrap.css">
    <script src="/static/bootstrap-4.6.2-dist/js/bootstrap.bundle.js"></script>
    <style>
        body {
            background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
        }
    </style>
</head>
<body>
<div>
    <form action="/student?operation=add" method="post" style="width: 300px;height:auto;margin:20px auto">

        <div class="form-group">
            <label for="exampleInputEmail1">姓名</label>
            <input type="text" name="studentName" class="form-control" id="exampleInputEmail1"
                   aria-describedby="emailHelp">
        </div>

        <div class="form-group">
            性别： <input type="radio" value="男" name="gender">男
            <input type="radio" name="gender" value="女">女
        </div>

        <div class="form-group">
            <label for="exampleInputPassword3">综合成绩</label>
            <input type="number" name="comprehensiveAchievements" class="form-control" id="exampleInputPassword3">
        </div>
        <div class="input-group mb-3">
            <div class="input-group-prepend">
                <label class="input-group-text" for="inputGroupSelect02">年级</label>
            </div>
            <select class="custom-select" id="inputGroupSelect02" name="studentGrade">
                <option selected>Choose...</option>
                <c:forEach items="${gradeList}" var="grade">
                    <option value="${grade.gradeName}">${grade.gradeName}</option>
                </c:forEach>
            </select>

        </div>

        <div class="input-group mb-3">
            <div class="input-group-prepend">
                <label class="input-group-text" for="inputGroupSelect01">班级</label>
            </div>
            <select class="custom-select" id="inputGroupSelect01" name="studentClass">
                <option selected>Choose...</option>
                <c:forEach items="${classsList}" var="classs">
                    <option value="${classs.className}">${classs.className}</option>
                </c:forEach>
            </select>
        </div>

        <button type="submit" class="btn btn-primary">新增</button>

    </form>
</div>
</body>
</html>
